<?php
// +---------------------------------------------------------------------+
// | OneBase    | [ WE CAN DO IT JUST THINK ]                            |
// +---------------------------------------------------------------------+
// | Licensed   | http://www.apache.org/licenses/LICENSE-2.0 )           |
// +---------------------------------------------------------------------+
// | Author     | Bigotry <3162875@qq.com>                               |
// +---------------------------------------------------------------------+
// | Repository | https://gitee.com/Bigotry/OneBase                      |
// +---------------------------------------------------------------------+

namespace app\api\controller;



/**
 * Shop控制器
 */
class Shop extends ApiBase
{



    /**
     *我的商铺接口
     */
    public function my_shop_list(){
        return $this->apiReturn($this->logicShop->myshop());
    }
    /**
     *申请商铺详情接口
     */
    public function apply_shop_detail(){
        return $this->apiReturn($this->logicShop->apply_shop_detail($this->param));
    }

    /**
     *我的商铺接口
     */
    public function mmyshop(){
        return $this->apiReturn($this->logicShop->mmyshop($this->param));
    }


    /**
     *OTC交易列表接口
     */
    public function shop_detail(){
        return $this->apiReturn($this->logicShop->shop_detail($this->param));
    }



    /**
     * OTC交易下单接口
     */
    public function my_trade_list(){
        return $this->apiReturn($this->logicShop->my_trade_list($this->param));
    }

    /**
     * 撤回订单
     */
    public function withdraw_order(){

        return $this->apiReturn($this->logicShop->withdraw_order($this->param));

    }
    /**
     * 充值店铺
     */
    public function charge_shop(){

        return $this->apiReturn($this->logicShop->charge_shop($this->param));

    }

    /**
     * 店铺转入法币
     */
    public function shop_to_currency(){

        return $this->apiReturn($this->logicShop->shop_to_currency($this->param));

    }
    /**
     * 排队统计
     */
    public function queuing_statistics(){

        return $this->apiReturn($this->logicShop->queuing_statistics($this->param));

    }

    /**
     * 额外补贴
     */
    public function additional_allowance(){

        return $this->apiReturn($this->logicShop->additional_allowance($this->param));

    }



    /***
     * 申请店铺
     */

    public function  apply_shop(){
        return $this->apiReturn($this->logicShop->apply_shop($this->param));
    }


    /***
     * 店铺排名前三
     */

    public function  shop_list(){
        return $this->apiReturn($this->logicShop->shop_list($this->param));
    }

    /***
     * 店铺排名前三
     */

    public function  shop_switch(){
        return $this->apiReturn($this->logicShop->shop_switch($this->param));
    }
    /***
     * 店铺设置
     */

    public function  shop_setting(){
        return $this->apiReturn($this->logicShop->shop_setting($this->param));
    }
    /***
     * 店铺设置修改
     */

    public function  shop_setting_edit(){
        return $this->apiReturn($this->logicShop->shop_setting_edit($this->param));
    }

    /***
     * 自动撤回订单
     */

    public function  auto_withdraw_order(){
        return $this->apiReturn($this->logicShop->auto_withdraw_order($this->param));
    }
    /***
     * 店铺代发订单转移
     */

    public function  order_transfer(){
        return $this->apiReturn($this->logicShop->order_transfer($this->param));
    }
    /***
     * 店铺财务流水
     */

    public function  shop_account_log(){
        return $this->apiReturn($this->logicShop->shop_account_log($this->param));
    }

}
